import os


class Environment:
    pass
    # @staticmethod
    # def output_pid():
    #     f = open('logs/environment.gh', 'w')
    #     f.write("pid=" + str(os.getpid()))
    #     f.close()
    #
    # @staticmethod
    # def read_pid():
    #     result = ''
    #
    #     try:
    #         f = open("logs/environment.gh", "r")
    #         lines = f.readlines()  # 读取全部内容
    #         for line in lines:
    #             pair = line.split('=')
    #             if pair[0] == 'pid':
    #                 result = pair[1]
    #                 break
    #     except Exception as e:
    #         pass
    #
    #     return result
